﻿@model MVC4_Test.Models.Question

@{
    ViewBag.Title = "Ask";
}
 
    
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
    <script src="//cdn.sstatic.net/Js/stub.en.js?v=870bf30df33b"></script>
    <script src="/ckeditor/ckeditor.js" type="text/javascript"></script>
    
    <script>
        StackExchange.ready(
            function () {
                StackExchange.using("postValidation", function () {
                    StackExchange.postValidation.initOnBlurAndSubmit($('#post-form'), 1, 'question');
                });

                StackExchange.question.initTitleSearch($('#title'), $("#question-suggestions"), 'Stack Overflow');

            }
        );
    </script>

        <script>
            StackExchange.gps.track("question_ask.visit", { 'inbox_subscription': 1 });
            StackExchange.using("gps", function () {
                var pending = [];
                var send = StackExchange.helpers.DelayedReaction(function () {
                    StackExchange.gps.sendPending();
                }, 3000);
                var alreadySent = { "title_focus": 1 };
                $("#title,#wmd-input,#tagnames").on("focus blur", function (evt) {
                    var what = { title: "title", "wmd-input": "body", "tagnames": "tags"}[this.id] + "_" + evt.type;
                    if (alreadySent[what])
                        return;
                    StackExchange.gps.track("question.action", { action_type: what }, true);
                    alreadySent[what] = 1;
                    send.trigger();
                });
            });
        </script>


    <script>
        StackExchange.init({ "locale": "en", "stackAuthUrl": "https://stackauth.com", "serverTime": 1395239634, "networkMetaHostname": "meta.stackoverflow.com", "styleCode": true, "enableUserHovercards": true, "site": { "name": "Stack Overflow", "description": "Q&A for professional and enthusiast programmers", "isNoticesTabEnabled": true, "recaptchaPublicKey": "6LdchgIAAAAAAJwGpIzRQSOFaO0pU6s44Xt8aTwc", "recaptchaAudioLang": "en", "nonAsciiTags": true, "enableSocialMediaInSharePopup": true }, "user": { "fkey": "0e0cc94c857d664abbaea39b279ed033", "isRegistered": true, "userType": 3, "userId": 3387813, "accountId": 4129550, "gravatar": "<div><img src=\"https://www.gravatar.com/avatar/d7165886f24e35404261c2e2009b4aa0?s=32&d=identicon&r=PG&f=1\" alt=\"\" width=\"32\" height=\"32\"></div>", "profileUrl": "http://stackoverflow.com/users/3387813/user3387813", "notificationsUnviewedCount": 0, "inboxUnviewedCount": 0, "ab": { "welcome_email": { "v": "2", "g": 1}}} });
        StackExchange.using.setCacheBreakers({ "js/prettify-full.en.js": "e0bbd4760e83", "js/moderator.en.js": "6fd0f8944a72", "js/full-anon.en.js": "d647ad2a8bac", "js/full.en.js": "f7fb935566c8", "js/wmd.en.js": "21adc133fffc", "js/third-party/jquery.autocomplete.min.js": "e5f01e97f7c3", "js/third-party/jquery.autocomplete.min.en.js": "", "js/mobile.en.js": "8b7426c9c15b", "js/help.en.js": "d3cc74d8a93a", "js/tageditor.en.js": "6d51a5f8d7f3", "js/tageditornew.en.js": "c07369f4aaed", "js/inline-tag-editing.en.js": "f951bd09dc69", "js/revisions.en.js": "33fd38144303", "js/review.en.js": "dcd566e91a71", "js/tagsuggestions.en.js": "e4e7b952fcc7", "js/post-validation.en.js": "e64adf5ca516", "js/explore-qlist.en.js": "73825bd006fc", "js/events.en.js": "d419f8e951d1" });
        StackExchange.using("gps", function () {
            StackExchange.gps.init(true);
        });
        
    </script>
    
</head>
<body class="ask-page new-topbar">
    <noscript><div id="noscript-padding"></div></noscript>
    <div id="notify-container"></div>
    <div id="overlay-header"></div>
    <div id="custom-header"></div>


        <div class="network-items">
            
                
</div>
<script>
    StackExchange.ready(function () {
        //topbar.init();
        StackExchange.topbar.init();
    });
</script>
@using (Html.BeginForm())
{
<div class="form-item ask-title">
<table class="ask-title-table">
                        <tr>
                            <td class="ask-title-cell-key">
                                <label for="title">Title</label>
                            </td>
                            <td class="ask-title-cell-value">
                                <input id="title" name="title" type="text" maxlength="300" tabindex="100" class="ask-title-field" data-min-length="15" data-max-length="150">                        
                                <span class="edit-field-overlay">What&#39;s your programming question? Be specific.</span>
                            </td>
                        </tr>
                    </table>
<div>
    <textarea id="editor1" name="text">&lt;p&gt;Initial value.&lt;/p&gt;</textarea>
    <script type="text/javascript">    CKEDITOR.replace('editor1');
    </script>
</div>
</div>

<script>
    StackExchange.ready(function () {
        StackExchange.using("tagEditor", function () { StackExchange.tagEditor.ready.done(initFadingHelpText); });
        initTagRenderer("".split(" "), "".split(" "));

        prepareEditor({
            heartbeatType: 'ask',
            bindNavPrevention: true,
            postfix: "",
            onDemand: false,
            discardSelector: ".discard-question"
            , immediatelyShowMarkdownHelp: true
        });


    });  
</script>



        
            <div style="position: relative;"> 

                <script>
                    StackExchange.using("tagEditor", function () {
                        initTagRenderer("".split(" "), "".split(" "));
                        StackExchange.tagEditor($("#tagnames"));
                    });
</script>	

<div style="position: relative;"> 
<div class="form-item">
    <label>Tags</label>
    <input id="tagnames" name="tagnames" type="text" size="60" value="" tabindex="103">
    <span class="edit-field-overlay">
at least one tag such as (.net wordpress c), max 5 tags    </span>
</div>
</div>

                    <div id="tag-suggestions"></div>
                    <script>
                        StackExchange.using("tagSuggestions", function () {
                            StackExchange.tagSuggestions.init();
                        });
                    </script>


            </div>
        
            <div id="question-only-section">
    <div class="form-item">
        <div>
            <input id="inbox-opt-int-5ab0c46940ff4b9b86c49eef9672030b" type="checkbox" />
            <label for="inbox-opt-int-5ab0c46940ff4b9b86c49eef9672030b" style="display: inline">Send me new responses to my posts via email</label>
            <a id="inbox-opt-int-5ab0c46940ff4b9b86c49eef9672030b-settings" href="#">(settings)</a>
        </div>
        <div id="inbox-opt-int-5ab0c46940ff4b9b86c49eef9672030b-container" style="display: none;">
            Send me new responses to my posts via email
            <select id="inbox-opt-int-5ab0c46940ff4b9b86c49eef9672030b-freq">
                <option value="3">every 3 hours</option>
                <option value="24">daily</option>
                <option value="168">weekly</option>
            </select>
            
            <div>
                Send emails to
                <input id="inbox-opt-int-5ab0c46940ff4b9b86c49eef9672030b-address" style="width: 300px;" value="aman1300@student.nhl.nl" />
            </div>
        </div>
    </div>
    <script>
        StackExchange.ready(function() {
            var settingsShown = false;
            var settingsContainer = $('#inbox-opt-int-5ab0c46940ff4b9b86c49eef9672030b-container');
            var settingsAutoExpand = false;
            var postForm = $('#post-form');
            var updateHiddenField = function(name, value) {
                var field = postForm.find('[name=' + name + ']');
                if (value === null) {
                    field.remove();
                } else {
                    if (field.length === 0) {
                        field = $('<input>').attr({ type: 'hidden', name: name }).appendTo(postForm);
                    }
                    field.val(value);
                }
            };
            
            var getFormData = function() {
                return {
                    inboxEmailOptIn: $('#inbox-opt-int-5ab0c46940ff4b9b86c49eef9672030b').is(':checked'),
                    inboxEmailAddress: $('#inbox-opt-int-5ab0c46940ff4b9b86c49eef9672030b-address').val(),
                    inboxEmailFreq: $('#inbox-opt-int-5ab0c46940ff4b9b86c49eef9672030b-freq').val(),
                };
            };

            var clearForm = function() {
                for (var field in getFormData()) {
                    updateHiddenField(field, null);
                }
            };

            var updateForm = function() {
                var data = getFormData();
                for (var field in getFormData()) {
                    updateHiddenField(field, data[field]);
                }
            };

            var toggleSettings = function(show) {
                if (show) {
                    settingsContainer.slideDown('fast');
                    if (!settingsShown) {
                        StackExchange.using("gps", function() {
                            StackExchange.gps.track('inbox_settings.show', { location: '2' });
                        });
                        settingsShown = true;
                    }
                } else {
                    settingsContainer.slideUp('fast');
                }
            };
            $('#inbox-opt-int-5ab0c46940ff4b9b86c49eef9672030b').change(function() {
                var checked = $(this).is(':checked');
                if (checked) {
                    if (settingsAutoExpand) {
                        toggleSettings(true);
                    }
                    updateForm();
                } else {
                    if (settingsAutoExpand) {
                        toggleSettings(false);
                    }
                    clearForm();
                }
                $('#inbox-opt-int-5ab0c46940ff4b9b86c49eef9672030b-address, #inbox-opt-int-5ab0c46940ff4b9b86c49eef9672030b-freq').attr('disabled', !checked);
            }).change();
            $('#inbox-opt-int-5ab0c46940ff4b9b86c49eef9672030b-settings').click(function(evt) { 
                toggleSettings(!settingsContainer.is(':visible'));
                evt.preventDefault();
                return false;
            });
            $('#inbox-opt-int-5ab0c46940ff4b9b86c49eef9672030b-address').keyup(updateForm);
            $('#inbox-opt-int-5ab0c46940ff4b9b86c49eef9672030b-freq').val('24').change(updateForm);
        });
    </script>

                <div class="form-submit cbt">
                    <input id="submit-button" type="submit" value="Post Your Question" tabindex="120">
                    <a href="#" class="discard-question dno">discard</a>
                    
                </div>
            </div>


}
</div>


<br class="cbt">
<div style="display:none" id="prettify-lang"></div>

        </div>
    </div>
  
    <noscript>
        <div id="noscript-warning">Stack Overflow works best with JavaScript enabled<img src="http://pixel.quantserve.com/pixel/p-c1rF4kxgLUzNc.gif" alt="" class="dno"></div>
    </noscript>

    <script>
        (function (i, s, o, g, r, a, m) {
            i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () { (i[r].q = i[r].q || []).push(arguments) }, i[r].l = 1 * new Date(); a = s.createElement(o),
            m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m);
        })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
        ga('create', 'UA-5620270-1');
        ga('set', 'dimension1', '4129550');

        ga('send', 'pageview');
        var _qevents = _qevents || [],
            _comscore = _comscore || [];
        (function () {
            var ssl = 'https:' == document.location.protocol,
                s = document.getElementsByTagName('script')[0],
                qc = document.createElement('script');
            qc.async = true;
            qc.src = (ssl ? 'https://secure' : 'http://edge') + '.quantserve.com/quant.js';
            s.parentNode.insertBefore(qc, s);
            var sc = document.createElement('script');
            sc.async = true;
            sc.src = (ssl ? 'https://sb' : 'http://b') + '.scorecardresearch.com/beacon.js';
            s.parentNode.insertBefore(sc, s);
        })();
        _comscore.push({ c1: "2", c2: "17440561" });
        _qevents.push({ qacct: "p-c1rF4kxgLUzNc" });
    </script>        
    